/*
 * @Author: czy
 * @Date: 2021-07-10 15:08:56
 * @LastEditTime: 2021-07-11 22:10:29
 */
#ifndef __SYSCALL_H_
#define __SYSCALL_H_

#define return_val(x) __asm__ __volatile__("mov %%eax, %0" \
                                           : "=a"(x))

__attribute__((regparm(3))) int _syscall(int num, int arg1, int arg2);
__attribute__((regparm(3))) int syscall(int num, int arg1, int arg2);

#endif